home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / sviluppo / svilupp2 / istar.lha / Docs / Value Types < prev   
Text File  |  1996-06-26  |  4KB  |  116 lines

  1. VALUE TYPES
  2.  
  3. In this version you are provided with the following basic value types from 
  4. which you can make attribute types.
  5.  
  6. Integer
  7.       Numeric for whole numbers
  8.       Range: -billion to billion (normal 32 bits)
  9.       Held as:  32 bits
  10.       Coding:  simple signed binary number
  11.  
  12. Floating point
  13.       Numeric for floating point numbers
  14.       Range: normal 32 bits
  15.       Held as:  32 bits
  16.       Coding:  normal exponent and mantissa
  17.  
  18. Ratio
  19.       Numerator and denominator, both can be signed
  20.       Used for any ratio
  21.       Range:  Each part has range of full integer.
  22.       The ratio can represent infinity by holding denominator = 0
  23.       Held as: Two 32 bit integers
  24.       Coding:  Two simple signed binary numbers
  25.             Infinity when denominator = 0
  26.       In most manipulations, the greatest common divisor is removed
  27.             (so if you multiply 4/7 by 14/15 you get 8/15)
  28.  
  29. Odds
  30.       Numerator and denominator, both positive
  31.       Used especially for odds and conversions to and from probability
  32.       Used for bayesian multipliers
  33.       Range:  Each part has range 0 to 65k
  34.       Held as: Two unsigned 16 bit words
  35.       Coding:  Two simple unsigned binary numbers
  36.             Infinity when denominator = 0
  37.       In most manipulations the greatest common divisor is removed
  38.  
  39. String
  40.       Any string
  41.       Range: up to 200 characters in length at present
  42.       Held as: child 'Sysatt' block with as much space as needed
  43.       Coding:  ASCII
  44.  
  45. Boolean
  46.       Truth value: yes or no, true or false
  47.       Range:  true or false
  48.       Held as: unsigned 16 bit word
  49.       Coding: 0 = false, anything else = true
  50.  
  51. Probability
  52.       0 to 1 (0 to 100%) for soft truth value
  53.       Range:  0 to 1
  54.       Held as:  Unsigned 16 bit word
  55.       Coding: 0x0000 means 0, 0xffff means 1
  56.  
  57. Bayesian
  58.       Probability used for evidential reasoning
  59.       Has a-priori and lower and upper cut-offs
  60.       Range:  Part as probability
  61.       Held as:  Four probabilities
  62.       Coding:  As probability, four times
  63.  
  64. Proportion
  65.       Represents a proportion 0 to 100%
  66.       Used for anything that requires a limit of 100%
  67.       Range:  0 to 100%
  68.       Held as:  Unsigned 16 bit word
  69.       Coding: 0xffff means 100%
  70.       In many things proportion and probability are interchangeable
  71.  
  72. OZMO (one-zero-minus-one, e.g. result of cosine)
  73.       Like a proportion that can go negative as well as positive
  74.       Used for e.g. degrees of belief, degrees of dislike
  75.       Range:  -1 to 0 to 1
  76.       Held as:  Signed 32 bit word,
  77.       Coding: 0x80000000 means -1, 0 means 0, 0x7fFFffFF means 1
  78.  
  79. Direction/Angle (0 to 360 degrees)
  80.       A circular value which represents proportion round a circle
  81.       Used for angles, directions, etc.
  82.       Range:  0 to 360 degrees (2.pi radians)
  83.       Held as:  Unsigned 16 bit word
  84.       Coding:  0x0000 = 0 and 360 degrees. 0xffff = just before 360
  85.             90 degrees = 0x4000, 180 degrees = 0x8000, etc.
  86.  
  87. Enumerated Type
  88.       An index number for selecting an entity from a set
  89.       See also Ordinal, which is ordered
  90.       Strictly, numeric comparisons and operations meaningless
  91.             but in practice allowed as for Ordinal
  92.       Range:  strictly meaningless
  93.       Each value is expected to have an attached string name
  94.       Held as:  Unsigned 16 bit word
  95.       Coding:  0 means 'nothing selected', 1 upwards shows selection
  96.  
  97. Ordinal
  98.       An index number for selecting an entiry from a list
  99.       See also Enum, which is unordered
  100.       Numeric comparisons and operations meaningful
  101.       Range:  1 to 65k
  102.       Each value can be linked to an attached string name
  103.       Held as:  Unsigned 16 bit word
  104.       Coding:  1 = first in list, 2 = second, etc.
  105.             0 = 'nothing selected'
  106.  
  107. Block
  108.       The DSAP of a block in the KB
  109.       Used for identifying things in the KB and e.g. getting name of it
  110.       Its value must never be altered as it is like a pointer
  111.       Range:  strictly meaningless
  112.       Coding:  32 bit relative pointer
  113.  
  114.  
  115. Copyright (c) Andrew Basden, 1996
  116.